/**
 * Created by george on 1/18/17.
 */

module.exports = function (app) {
    var mini = require('../controllers/miniApp-controller');

    // Get
    // app.get('/rest/' + RESTFullServiceVersion + '/parking/getUserParkingList/:wechatId', mini.getUserParkingList);
    app.get('/rest/' + RESTFullServiceVersion + '/parking/getParkingList/:ts', mini.getParkingList);
    app.get('/rest/' + RESTFullServiceVersion + '/parking/geParkingDetail/:parkingId', mini.getParkingDetail);

    // New Parking Space
    app.post('/rest/' + RESTFullServiceVersion + '/parking/new', mini.makeParkingItem);

};